package com.neuedu.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

/**
 * @author LiYang
 * @desc
 * @date 2024/11/5 10:05
 */
@RestController
public class GuanjiaController {
    @GetMapping("/index")
    String index(){
        RestTemplate restTemplate = new RestTemplate();
        String forObject = restTemplate.getForObject("http://localhost:8081/admin/login", String.class);
        System.out.println(forObject);
        return "index";
    }
}
